﻿@model sipfe.model.dataAccess.SIPMaeSolicitud
@using Resources;
<script type="text/javascript" src="@Url.Content(@properties.nuevoJS)" ></script>
<script type="text/javascript" src="@Url.Content(@properties.calendarioV2JS)" ></script>
<script type="text/javascript" src="@Url.Content(@properties.mantePersonaJS)" ></script>
@{
    var claseTramite = new List<SelectListItem> { 
        new SelectListItem { Text = "NÚMERO IDENTIFICACIÓN DE ACCIÓN - NIA", Value = "2290"}
    };         
}
<script type="text/javascript">
    $(function () {        
        $("#idListaAccion").click();
        //calendarioFuturo1('dFecRecepFisica', '1');
    });
</script>
<div id="divAccionEmpresa"><span onclick="javascript:listaAccionesEmpresa('#divAccionEmpresa');" id="idListaAccion">&nbsp gggg</span></div>

@using (Html.BeginForm("AddNuevoCaso", "../Nuevo/Nuevo", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
<table border="1"  style="padding:10px;">
    <tr>
        <td>
            <table border="0">
                <tr><td>&nbsp;</td></tr>
                <tr>
                    <td>Clasekk</td>
                    <td>:</td>
                    <td>@Html.DropDownListFor(model => model.nIdeClaseSolicitud, (IEnumerable<SelectListItem>)claseTramite) </td>
                </tr>
                <tr>
                    <td style="width:85px;">Empresa</td>
                    <td style="width:2px;">:</td>
                    <td class="textNormal8">@ViewBag.razonSocial</td>
                </tr>
                <tr>
                    <td>Tipo de Acción</td>
                    <td>:</td>
                    <td>@Html.DropDownList("nTipoSolicitud", (IEnumerable<SelectListItem>)ViewBag.TiposAcciones, "--Seleccione--")</td>
                </tr>
                <tr>
                    <td>Asunto<span class="asterisco">(*)</span></td>
                    <td>:</td>
                    <td>@Html.TextAreaFor(model => model.vAsunto, new { style = "width:700px;", maxlength = 500, ondblclick = "javascript:cleanBox(this);", onkeypress = "return validaAlfaNumTamanio(this, event, 500);", onblur = "javascript:onBlurUpper(this);" })</td>
                </tr>
                <tr>
                    <td>Fecha Evento</td>
                    <td>:</td>
                    <td>
                        <table style="width:300px;">
                            <tr>
                                <td>@Html.TextBoxFor(model => model.dFecRecepFisica, new { style = "width:60px;", maxlength = 10, onkeyup="javascript:setFechaCaja(this);", onkeypress = "return validarCharFecha(event);", onblur="javascript:ValDateTextNew(this);" }) <img src="@Url.Content("~/images/calendar.png")" class="lupita2" alt="VER HIJOS DE LA DEPENDNCIA" onclick="javascript:show_calendar(this);"/></td>
                                <td>&nbsp;</td>
                                <td class="right">Hora Evento<span class="asterisco">(*)</span></td>
                                <td>:</td>
                                <td>
                                <table>
                                    <tr>
                                        <td>
                                            @Html.TextBoxFor(model => model.horaStr, new { style = "width:15px;", maxlength = 2, Value = @String.Format("{0:HH}", DateTime.Now), ondblclick = "javascript:cleanBox(this);", onkeypress = "return validarSoloNumeros(event);", onblur = "javascript:validaHora24(this,'1');" })
                                        </td>
                                        <td>:</td>
                                        <td>
                                            @Html.TextBoxFor(model => model.minutoStr, new { style = "width:15px;", maxlength = 2, Value = @String.Format("{0:mm}", DateTime.Now), ondblclick = "javascript:cleanBox(this);", onkeypress = "return validarSoloNumeros(event);", onblur = "javascript:validaHora24(this,'2');" })                                            
                                        </td>
                                        <td>(hh24:mm)</td>
                                    </tr>
                                </table>
                            </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>Adjunto</td>
                    <td>:</td>
                    <td><input type="file" style="width:500px;"  name="idAdjunto" id="idAdjunto"  onchange="javscript:validaAdjuntoDerivar(this);" /></td>
                </tr>
                <tr><td>&nbsp;</td></tr>
                <tr><td class="center" colspan="3"><input type="button" value="Registrar" onclick="javascript: registrarCaso(this, this.form,'1');" /></td></tr>
                <tr><td>&nbsp;</td></tr>
            </table>
        </td>
    </tr>    
</table>
@Html.HiddenFor(model => model.vDestino, new { Value = @Session["nIdeDep"] }) 
@Html.HiddenFor(model => model.nIdeDepSolicitud, new { Value = @Session["nIdeDep"] })       
@Html.HiddenFor(model => model.nIdeEstadoSol, new { @Value = 1 })         
@Html.HiddenFor(model => model.nIdeUsuReg, new { Value = @Session["nIdeUsuario"] })
@Html.HiddenFor(model => model.nIdeFuncionario, new { Value = @Session["nIdeFuncionario"] })
@Html.HiddenFor(model => model.nIdeOrigenSol, new { @Value = 1 })        
@Html.HiddenFor(model => model.nIdePlazo, new { @Value = 1 })
@Html.HiddenFor(model => model.nIdeEmpresa, new { @Value = ViewBag.nIdeEmpresa })
@Html.HiddenFor(model => model.nIdePrioridad, new { @Value = 1 })
<input id="sw" name="sw" type="hidden" />
<input id="razonSocial" name="razonSocial" type="hidden" value="@ViewBag.razonSocial" /> 
@Html.HiddenFor(model => model.nIdeTipoDocum, new { @Value =5 }) 
}